import { createSlice } from '@reduxjs/toolkit'

interface DashboardState {
  stats: any
  loading: boolean
  error: string | null
}

const initialState: DashboardState = {
  stats: null,
  loading: false,
  error: null,
}

const dashboardSlice = createSlice({
  name: 'dashboard',
  initialState,
  reducers: {
    // 添加 reducers
  },
})

export default dashboardSlice.reducer
